package cn.net.isir.dao;

import cn.net.isir.core.BasicDao;
import cn.net.isir.entity.Ticket;
import org.springframework.stereotype.Repository;

@Repository
public class TicketDao extends BasicDao<Ticket> {
    /**
     * 根据ticket查询ticket实体类
     *
     * @param ticket 参数
     * @return ticket实体类
     */
    public Ticket selectByTicket(String ticket) {
        Ticket t = new Ticket();
        t.setTicket(ticket);
        return selectOne(t);
    }
}
